<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;
use think\Db;
//投诉验证
class AddMessageValidate extends Validate
{
    protected $rule = [
        'orderid'       => 'require',
        'type'        => 'require',
        'phone'        => 'require|length:7,20',
        'else'        => 'require|min:5',

    ];

    protected $message = [
        'orderid'       => '请填写订单号',
        'type'        => '请选择投诉类型',
        'phone'        => '请填写联系方式，必须是7-2个字符',
        'else'        => '请填写详细内容，最少5个字符',
    ];

}